/**
 * Copyright (c) 2004-2015 All Rights Reserved.
 */
package com.becca.cake.core.properties;

import java.util.Properties;

import org.springframework.beans.BeansException;
import org.springframework.beans.factory.config.ConfigurableListableBeanFactory;
import org.springframework.beans.factory.config.PropertyPlaceholderConfigurer;

/**
 * 重写PropertyPlaceholderConfigurer
 * @author hejinguo
 * @date 2015年10月20日 上午11:18:25
 */
public class UserPropertyPlaceholderConfigurer extends PropertyPlaceholderConfigurer {

    @Override
    protected void processProperties(ConfigurableListableBeanFactory beanFactoryToProcess,
                                     Properties props) throws BeansException {
        super.processProperties(beanFactoryToProcess, props);
        Configuration.setProperties(props);
    }

}
